<!DOCTYPE html>
<html>
<head>
    {include file='public/meta'/}

    <link rel="stylesheet" href="__STATIC_URL__/static/css/bootstrapSwitch.css">


    <script src="__STATIC_URL__/static/js/template.js"></script>
    <script src="__STATIC_URL__/static/js/bootstrapSwitch.js"></script>
    <style>
        .info-row{
            line-height: 32px;
            color: #333;
        }
        .info-row label{
            padding-left: 15px;
            padding-right: 15px;
            font-weight: 400;
        }
    </style>
</head>
<body>
{include file='public/header'/}
<!------------------导航-------------------------->
<section>
    {include file='public/left'/}
    <!--------------------------主要内容区域------------------------------------->
    <div class="content">
        <!--路径导航-->
        <div class="page-heading mgl15 mgr15">
            <ul class="breadcrumb">
                <li>当前位置是&nbsp;:</li>
                <li><a href="javascript:history.back();">营销工具</a></li>
                <li><a href="javascript:history.back(-2)">活动营销</a></li>
                <li>
                    <a href="javascript:history.back(-1)">关注领券列表</a>
                </li>
                <li class="active" style="color: #02b87f;">领取人列表</li>
            </ul>
        </div>
        <!--内容列表-->
        <!---
        <div class="alert alert-success alert-dismissible mgl15 mgr15" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true">&times;</span>
            </button>
            设置说明：高级设置可设置卡券支付时的自动抵扣，目前开放了代金券和折扣券的自动抵扣设置，其他类型卡券暂不支持。
        </div>
      -->
        <div class="panel panel-default mgl15 mgr15">
            <div class="panel-heading addCharts" style="background:#ededed;">领取人列表

            </div>
            <div class="panel-body">

                <table class="table table-bordered" data-toolbar="#toolbar">
                    <thead>
                    <tr>
                        <th>昵称</th>
                        <th>发放时间</th>
                        <th>发放卡券</th>

                    </tr>
                    </thead>
                    <tbody>
                    {volist name="list" id="vo"}
                    <tr>

                        <td>{:get_user_nickname($vo['openid'])}</td>
                        <td>{$vo['followtime']|date="Y-m-d",###}</td>

                        <td>{:getpaygive($vo['zs_card_id'])}</td>

                    </tr>
                    {/volist}
                    </tbody>
                </table>
            </div>

        </div>

    </div>
</section>
<!-- 模态框（Modal） -->


</body>

<script type="text/javascript">

    $(function(){
        $('#myModal').on('hide.bs.modal', function () {
            $("#home img").attr("src", '');
            $("#codeone").attr("href", '#');
        });
        $("#cardModal").on('show.bs.modal', function () {
            var id = $(event.target).data("id");
            var datas = {};
            $.ajax({
                url:"{:url('cards/getinfocards')}",
                type:"post",
                data:{
                    id:id
                },
                success:function(data){
                    $("#nick-name").text(data.nickname);
                    datas.list = data;
                    var html = template('modallist', datas);
                    $("#templateHtml").html(html);
                }
            })
        });
    })
</script>


</html>
